OPC Studio User's Guide and Reference
CurrentState Property (UAMultiStateDiscreteNode<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UAMultiStateDiscreteNode<TValue,TAttribute> Class : CurrentState Property
The current value of the variable (node), expressed as a string.
Syntax
'Declaration
 
Public Overrides ReadOnly Property CurrentState As String
'Usage
 
Dim instance As UAMultiStateDiscreteNode(Of TValue,TAttribute)
Dim value As String
 
value = instance.CurrentState
public override string CurrentState {get;}
public:
property String^ CurrentState {
   String^ get() override;
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is "" (String.Empty).

Remarks

If the current value is a null reference, this property returns an empty string.

If the current value is not null, but is invalid in some other way, this property returns a decimal string representation of the current value.

If the current value is valid, this property returns a corresponding string from the EnumStrings property. If this string is empty, and the SubstituteEmptyStates is true, the string is substituted by formatting the current value using a format string taken from the SubstituteStateFormat property.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also